package com.code.learn.Ipersistance.dao;

import com.code.learn.Ipersistance.pojo.User;

import java.util.List;

/**
 * @author Nina
 * @create 2020/12/15 上午11:36
 */
public interface IUserDao {
    //查询所有用户
    List<User> findAll() throws Exception;


    //根据条件进行用户查询
     User findByCondition(User user) throws Exception;


    void add(User user) throws Exception;

    void modify(User user) throws Exception;

    void remove(User user) throws Exception;

}
